<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?=validation_errors('<div style="color:red" class="error">', '</div>'); ?>
		<?php if (isset ($error)) { ?>
            <div style="color:red" class="error"><?php echo $error; ?></div>
            <?php } ?>
		<?=form_open_multipart('picture/edit/'.$pro_id);?>
			<table>
				<tr>
					<th colspan="2" align="center">
						<?=$this->lang->line('lang.i18n.messages.object.add') . " " . $this->lang->line('lang.i18n.messages.object.picture');?>
					</th>
				</tr>
				<tr  valign="top">
			<td ><?=$this->lang->line('lang.i18n.messages.object.id');?></td>
			<td><input type="text" name="id" value="<?= set_value('id',$picture['id']) ?>" readonly="readonly" /> </td>
		</tr>
				<tr>
					<td><?=$this->lang->line('lang.i18n.messages.object.name');?></td>
					<td>
						<input name="name" type="text" size="20" value="<?= set_value('name',$picture['name']) ?>"/>
						<?=form_hidden('pro_id', $pro_id);?>
					</td>
				</tr>
				<tr>
					<td><?=$this->lang->line('lang.i18n.messages.object.name_en');?></td>
					<td><input name="name_en" type="text" value="<?= set_value('name_en',$picture['name_en']) ?>" size="20"/></td>
				</tr>
				<tr>
					<td><?=$this->lang->line('lang.i18n.messages.object.image');?></td>
					<td><input name="userfile" type="file" size="20"/></td>
				</tr>
				<tr>
					<td colspan="2" align="center">
						<?=form_submit('bt_upload',$this->lang->line('lang.i18n.messages.object.edit'));?>
					</td>
				</tr>
				
			</table>
         <?=form_close();?> 
